﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Simple.Common.Extensions;
using Simple.Repository.Models.Attendance;

namespace Simple.Services.System.Recipes.Models
{
    public class PlanWeekRecipesModel : ModelBase
    {
        public Guid Id { get; set; }

        /// <summary>
        /// 计划食谱名称	
        /// </summary>
        public string PlanName { get; set; }

        /// <summary>
        /// 食谱周期
        /// </summary>
        public string PlanRange { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StarTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }

        public List<PlanDayRecipesModel> PlanRecipesList { get; set; }

        public override void ConfigureMapper(Profile profile)
        {
            profile.CreateMap<PlanWeekRecipesModel, PlanWeekRecipes>();
            profile.CreateMap<PlanWeekRecipes, PlanWeekRecipesModel>();

            profile.CreateMap<PlanDayRecipesModel, PlanDayRecipes>();
            profile.CreateMap<PlanDayRecipes, PlanDayRecipesModel>();
        }
    }

    public class PlanWeekViewModel : ModelBase
    {
        public Guid Id { get; set; }

        /// <summary>
        /// 计划食谱名称	
        /// </summary>
        public string PlanName { get; set; }

        /// <summary>
        /// 食谱周期
        /// </summary>
        public string PlanRange { get; set; }

        public override void ConfigureMapper(Profile profile)
        {
            profile.CreateMap<PlanWeekRecipesModel, PlanWeekRecipes>();
            profile.CreateMap<PlanWeekRecipes, PlanWeekRecipesModel>();
 
        }

    }


}
